Skip to main content

keyDown

Type

message

Summary

Sent when the user presses a key.v

Syntax

keyDown pKeyName

Description

Handle the keyDown message if you want to do something special when the user presses any key or a particular key you check for in the handler.

If the key pressed is the Return, Tab, Backspace, Delete, or Enter key, an arrow key, or a function key, no keyDown message is sent. Instead, the returnKey, tabKey, backspaceKey, deleteKey, enterKey, arrowKey, or functionKey message is sent.

Parameters

NameTypeDescription

pKeyName

Text

The actual character of the pressed key.